package com.taxt.ui.adapter;

import android.content.Context;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.taxt.R;
import com.taxt.app.AppAdapter;
import com.taxt.http.api.HomeDataApi;
import com.taxt.ui.activity.VideoSelectActivity;

import java.util.List;

/**
 *    author : wq

 *    time   : 2018/11/05
 *    desc   : 热点问题
 */
public final class HotProblemAdapter extends AppAdapter<String> {
    public HotProblemAdapter(Context context) {
        super(context);
    }


    @NonNull
    @Override
    public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        return new ViewHolder();
    }

    private final class ViewHolder extends AppAdapter<?>.ViewHolder {
        private TextView mHotProblemTx;
        private ViewHolder() {
            super(R.layout.hot_problem_item);
            mHotProblemTx=findViewById(R.id.hot_Problem);
        }

        @Override
        public void onBindView(int position) {
            mHotProblemTx.setText(getItem(position));
        }
    }
}